home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / July 96 / Re .1 < prev    next >
Encoding:
Internet Message Format  |  1996-07-25  |  1.2 KB  |  [TEXT/ttxt]

  1. Subject:     Re: 
  2. Sent:        7/24/96 9:03 PM
  3. Received:    7/25/96 8:50 AM
  4. From:        Dave Wilson, dwilson@best.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >Hi ODF Team,
  9. >
  10. >I have been doing some testing of my part embeded in both ODF parts &
  11. >non-ODF parts, and I have found a problem when I am embeded that does not
  12. >happen when not embeded. It seems that every time my view's Draw function
  13. >is called (my view was invalidated), the view is erased beforehand. When
  14. >not embeded this does not happen. This automatic erasing is a problem for
  15. >me. Where is it happening and how can I circumvent it?
  16. >
  17. >Thanks,
  18. >Scott
  19.  
  20. One way to handle this in a leaf part is to call Draw() directly instead of
  21. doing the more common Invalidate(). If you call Draw() directly, be sure to
  22. call it inside a double loop:
  23. - iterate over all the frames in your presentation.
  24. - iterate over all the facets of each frame.
  25.  
  26. A sample where this seems to work well (with no blinking when embedded) is
  27. my Idler sample in the Developer University folder (on the DR5 CD).
  28.  
  29. -Dave
  30.  
  31. Dave Wilson
  32. Personal Concepts
  33. 635 Wellsbury Way
  34. Palo Alto, CA 94306
  35. voice: 415-494-6763
  36. email: dwilson@best.com
  37.  
  38.  
  39.